﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="EIIS.Infrastructure.Model.System" %>
<%@ Register Src="../Shared/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <title>数据字典分类新增</title>
    <uc1:Header ID="Header1" runat="server" />
</head>
<body class="easyui-layout" fit="true">
    <div region="center" border="false" fit="true">
        <form region="center" border="true" fit="true" id="form" method="post" action="/DicCategory/Save">
        <input type="hidden" id="id" name="entity.Id" value="<%= ((DicCategory)this.ViewData["entity"]).Id %>" />
        <input type="hidden" name="entity.ParentId" value="<%= ((DicCategory)this.ViewData["entity"]).ParentId %>" />
        <input type="hidden" name="entity.Level" value="<%= ((DicCategory)this.ViewData["entity"]).Level %>" />
        <table>
            <tr>
                <td style="text-align: right; width: 120px;">
                    上级分类：
                </td>
                <td>
                    <input type="text" name="entity.ParentName" value="<%= ((DicCategory)this.ViewData["entity"]).ParentName %>" disabled="disabled" />                   
                </td>
            </tr>
            <tr>
                <td style="text-align: right; width: 120px;">
                    分类名称(<font color="red">*</font>)：
                </td>
                <td>
                    <input type="text" class="easyui-validatebox" required="true" name="entity.Name" validType="length[1,100]"
                        value="<%= ((DicCategory)this.ViewData["entity"]).Name %>" />
                </td>
            </tr>
            <tr>
                <td style="text-align: right; width: 120px;">
                    分类编码(<font color="red">*</font>)：
                </td>
                <td>
                    <input type="text" class="easyui-validatebox" required="true" name="entity.TreeCode" validType="length[1,100]"
                        value="<%= ((DicCategory)this.ViewData["entity"]).TreeCode %>" />
                </td>
            </tr>
            <tr>
                <td style="text-align: right; width: 120px;">
                    排序(<font color="red">*</font>)：
                </td>
                <td>
                    <input type="text" class="easyui-numberbox" min="0" max="100000" name="entity.Index"
                        value="<%= ((DicCategory)this.ViewData["entity"]).Index %>" />
                </td>
            </tr>
            <tr>
                <td style="text-align: right; width: 120px;">
                    分类描述：
                </td>
                <td>
                    <textarea class="easyui-validatebox" style="width: 200px;" name="entity.Description" validType="length[1,100]"><%= ((DicCategory)this.ViewData["entity"]).Description %></textarea>
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
